﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using myTXTReader.Properties;

namespace myTXTReader
{
    public partial class frmSettings : Form
    {
        public frmSettings()
        {
            InitializeComponent();
        }

        private void frmSettings_Load(object sender, EventArgs e)
        {
            pg.SelectedObject=myTXTReader.Properties.Settings.Default;
        }

        private void frmSettings_FormClosed(object sender, FormClosedEventArgs e)
        {
            Form1 frm = (Form1)this.Owner;
            if (frm != null)
            {
                frm.Init();
                frm.Invalidate();
            }
        }

    }
}
